const path = require('path')

// a\b\b\c\c\d

// a\b\b\c\c\d
// 
const p1 = path.join('./a/b/c','../b/c/d','../c','d');
// a\b\c
// const p1 = path.join('./a','./b','./c');

console.log(p1);